package top.rainbowecho.common.validate;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author rainbow
 * @since 2019/11/24 9:16
 */
@Configuration
public class ValidateConfiguration {
    @Bean
    public ValidateInterceptor validateInterceptor() {
        return new ValidateInterceptor();
    }

    @Bean
    public ParamValidator paramValidator() {
        return new ParamValidator();
    }
}
